# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=mate-terminal
pkgver=1.26.0
pkgrel=0
pkgdesc="MATE terminal emulator"
url="https://github.com/mate-desktop/mate-terminal"
# s390x and riscv64 blocked by librsvg -> mate-desktop
arch="all !s390x !riscv64"
license="GPL-2.0-or-later"
depends="mate-common yelp-tools mate-desktop"
makedepends="libtool intltool dconf-dev libsm-dev itstool vte3-dev
	mate-desktop-dev libxml2-utils gtk+3.0-dev pcre2-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/mate-terminal-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--enable-static=no \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
dfdee8e3bb1bffc5570d8103b67f42de7c1b3f5f4902b9f35459eceab863ca03809c922adfa1bc28f5030e4070defcd305bdf0dac59065399f1c54abb4a640c6  mate-terminal-1.26.0.tar.xz
"
